import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/message/list-page`,
		name: "获取列表",
		get: async function (params) {
			return await http.get(this.url, params);
		}
	},
	member: {
		url: `${config.API_URL}/message/member`,
		name: "获取列表",
		get: async function (params) {
			return await http.get(this.url, params);
		}
	},
	action: {
		url: `${config.API_URL}/message`,
		name: "用户操作",
		post: async function (params) {
			return await http.post(this.url, params);
		},
		delete: async function (params) {
			return await http.delete(this.url, params);
		}
	},
	all: {
		url: `${config.API_URL}/message/all`,
		name: "清空消息记录",
		delete: async function (params) {
			return await http.delete(this.url, params);
		},
	}
}
